import request from '@/utils/request'

// 查询聊天会话列表
export function listMessageConversation(query) {
  return request({
    url: '/biz/messageConversation/list',
    method: 'get',
    params: query
  })
}

// 查询聊天会话详细
export function getMessageConversation(id) {
  return request({
    url: '/biz/messageConversation/' + id,
    method: 'get'
  })
}

// 新增聊天会话
export function addMessageConversation(data) {
  return request({
    url: '/biz/messageConversation',
    method: 'post',
    data: data
  })
}

// 修改聊天会话
export function updateMessageConversation(data) {
  return request({
    url: '/biz/messageConversation',
    method: 'put',
    data: data
  })
}

// 删除聊天会话
export function delMessageConversation(id) {
  return request({
    url: '/biz/messageConversation/' + id,
    method: 'delete'
  })
}

// 启用禁用聊天会话
export function changeStatus(data) {
  return request({
    url: '/biz/messageConversation/changeStatus',
    method: 'put',
    data: data
  })
}